<div id="main_messages" class="span-24 last main">
    <div class="span-18">
        <div class="section_messages">
            <h2><?=$this->escape($this->message['subject']) ?></h2>
            
            <? /*if (count ( $this->mensajes ) > 0) {
                            echo '<div class="success"><h2>';
                            foreach ( $this->mensajes as $msg ) {
                            echo $msg . '<br>';
                        }
                        echo '</h2></div>';
                    }*/
            ?>
            
            <div class="message_excerpt">
           
           <span class="ad_date"><?=$this->translate('Sent at'). ' ' .$this->message['date_created'] ?>
                   <?=$this->translate('by user ') ?> 
                   <a class="message_excerpt_link" href="/<?=$this->lang ?>/profile/<?=$this->username_from['username'] ?>"><?=$this->username_from['username'] ?></a>
           </span>
           
           <div class="message_body"><?php echo $this->escape($this->message['body']) ?></div>
            </div>
            <?php //don't show reply form if its a sent message 
                    $auth = Zend_Auth::getInstance ();
                    if ($this->message['user_to'] == $auth->getIdentity()->id): ?>
                    <div class="section_form">
                    <h2><?=$this->translate('Reply to this message') ;?></h2>
                <?=$this->createreply ?>
                    </div>
            <?php endif;?>
        </div>
    </div>
    
    <div class="span-6 last">
        <div class="delete_message_icon">
            <a class="delete_message" href="/<?=$this->lang ?>/message/delete/id/<?=$this->escape($this->message['id']) ?>">
            <img alt="<?=$this->translate('Delete this message') ?>" src="/images/icons/ico_delete_message.png" class="valign" /><div class="txt_valign"><?=$this->translate('Delete this message') ?></div></a>        
        </div>
        <div class="received_messages_icon">
            <a class="received_messages" id="<?=(preg_match("/received/", $_SERVER['REQUEST_URI']))?"tab_active":"lala"?>" href="/<?=$this->lang ?>/message/received">
            <img alt="<?=$this->translate('Received messages') ?>" src="/images/icons/ico_received_messages.png" class="valign" /><div class="txt_valign"><?=$this->translate('Received messages');?></div></a>
        </div>
        <div class="sent_messages_icon">
            <a class="sent_messages" id="<?=(preg_match("/sent/", $_SERVER['REQUEST_URI']))?"tab_active":"lala"?>" href="/<?=$this->lang ?>/message/sent">
            <img alt="<?=$this->translate('Sent messages') ?>" src="/images/icons/ico_sent_messages.png" class="valign" /><div class="txt_valign"><?=$this->translate('Sent messages');?></div></a>        
        </div>
            
        <div class="clearer"></div>
        <div class="advertising">
                <!-- BEGIN PARTNER PROGRAM - DO NOT CHANGE THE PARAMETERS OF THE HYPERLINK -->
<script language="javascript" type="text/javascript" src="http://program.epartner.es/view.asp?ref=570686&site=8346&type=html&hnb=5&js=1"></script>
<noscript><a href="http://web.epartner.es/click.asp?ref=570686&site=8346&type=b1&bnb=1" target="_blank">
<img src="http://program.epartner.es/view.asp?ref=570686&site=8346&b=1" border="0"/></a><br /></noscript>
<!-- END PARTNER PROGRAM -->
        </div>
        </div>
</div> <!-- /main -->


